package com.rc.evcharger.model.ugs;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TenantUgsLevelGainExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TenantUgsLevelGainExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLevelGainTypeIdIsNull() {
            addCriterion("level_gain_type_id is null");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdIsNotNull() {
            addCriterion("level_gain_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdEqualTo(Long value) {
            addCriterion("level_gain_type_id =", value, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdNotEqualTo(Long value) {
            addCriterion("level_gain_type_id <>", value, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdGreaterThan(Long value) {
            addCriterion("level_gain_type_id >", value, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("level_gain_type_id >=", value, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdLessThan(Long value) {
            addCriterion("level_gain_type_id <", value, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdLessThanOrEqualTo(Long value) {
            addCriterion("level_gain_type_id <=", value, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdIn(List<Long> values) {
            addCriterion("level_gain_type_id in", values, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdNotIn(List<Long> values) {
            addCriterion("level_gain_type_id not in", values, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdBetween(Long value1, Long value2) {
            addCriterion("level_gain_type_id between", value1, value2, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIdNotBetween(Long value1, Long value2) {
            addCriterion("level_gain_type_id not between", value1, value2, "levelGainTypeId");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNull() {
            addCriterion("tenant_code is null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNotNull() {
            addCriterion("tenant_code is not null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeEqualTo(String value) {
            addCriterion("tenant_code =", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotEqualTo(String value) {
            addCriterion("tenant_code <>", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThan(String value) {
            addCriterion("tenant_code >", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_code >=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThan(String value) {
            addCriterion("tenant_code <", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThanOrEqualTo(String value) {
            addCriterion("tenant_code <=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLike(String value) {
            addCriterion("tenant_code like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotLike(String value) {
            addCriterion("tenant_code not like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIn(List<String> values) {
            addCriterion("tenant_code in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotIn(List<String> values) {
            addCriterion("tenant_code not in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeBetween(String value1, String value2) {
            addCriterion("tenant_code between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotBetween(String value1, String value2) {
            addCriterion("tenant_code not between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIsNull() {
            addCriterion("level_gain_type is null");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIsNotNull() {
            addCriterion("level_gain_type is not null");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeEqualTo(String value) {
            addCriterion("level_gain_type =", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNotEqualTo(String value) {
            addCriterion("level_gain_type <>", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeGreaterThan(String value) {
            addCriterion("level_gain_type >", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeGreaterThanOrEqualTo(String value) {
            addCriterion("level_gain_type >=", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeLessThan(String value) {
            addCriterion("level_gain_type <", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeLessThanOrEqualTo(String value) {
            addCriterion("level_gain_type <=", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeLike(String value) {
            addCriterion("level_gain_type like", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNotLike(String value) {
            addCriterion("level_gain_type not like", value, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeIn(List<String> values) {
            addCriterion("level_gain_type in", values, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNotIn(List<String> values) {
            addCriterion("level_gain_type not in", values, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeBetween(String value1, String value2) {
            addCriterion("level_gain_type between", value1, value2, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNotBetween(String value1, String value2) {
            addCriterion("level_gain_type not between", value1, value2, "levelGainType");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameIsNull() {
            addCriterion("level_gain_type_name is null");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameIsNotNull() {
            addCriterion("level_gain_type_name is not null");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameEqualTo(String value) {
            addCriterion("level_gain_type_name =", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameNotEqualTo(String value) {
            addCriterion("level_gain_type_name <>", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameGreaterThan(String value) {
            addCriterion("level_gain_type_name >", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameGreaterThanOrEqualTo(String value) {
            addCriterion("level_gain_type_name >=", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameLessThan(String value) {
            addCriterion("level_gain_type_name <", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameLessThanOrEqualTo(String value) {
            addCriterion("level_gain_type_name <=", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameLike(String value) {
            addCriterion("level_gain_type_name like", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameNotLike(String value) {
            addCriterion("level_gain_type_name not like", value, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameIn(List<String> values) {
            addCriterion("level_gain_type_name in", values, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameNotIn(List<String> values) {
            addCriterion("level_gain_type_name not in", values, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameBetween(String value1, String value2) {
            addCriterion("level_gain_type_name between", value1, value2, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLevelGainTypeNameNotBetween(String value1, String value2) {
            addCriterion("level_gain_type_name not between", value1, value2, "levelGainTypeName");
            return (Criteria) this;
        }

        public Criteria andLvTypeIsNull() {
            addCriterion("lv_type is null");
            return (Criteria) this;
        }

        public Criteria andLvTypeIsNotNull() {
            addCriterion("lv_type is not null");
            return (Criteria) this;
        }

        public Criteria andLvTypeEqualTo(String value) {
            addCriterion("lv_type =", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeNotEqualTo(String value) {
            addCriterion("lv_type <>", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeGreaterThan(String value) {
            addCriterion("lv_type >", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeGreaterThanOrEqualTo(String value) {
            addCriterion("lv_type >=", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeLessThan(String value) {
            addCriterion("lv_type <", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeLessThanOrEqualTo(String value) {
            addCriterion("lv_type <=", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeLike(String value) {
            addCriterion("lv_type like", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeNotLike(String value) {
            addCriterion("lv_type not like", value, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeIn(List<String> values) {
            addCriterion("lv_type in", values, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeNotIn(List<String> values) {
            addCriterion("lv_type not in", values, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeBetween(String value1, String value2) {
            addCriterion("lv_type between", value1, value2, "lvType");
            return (Criteria) this;
        }

        public Criteria andLvTypeNotBetween(String value1, String value2) {
            addCriterion("lv_type not between", value1, value2, "lvType");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgIsNull() {
            addCriterion("gain_type_img is null");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgIsNotNull() {
            addCriterion("gain_type_img is not null");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgEqualTo(String value) {
            addCriterion("gain_type_img =", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgNotEqualTo(String value) {
            addCriterion("gain_type_img <>", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgGreaterThan(String value) {
            addCriterion("gain_type_img >", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgGreaterThanOrEqualTo(String value) {
            addCriterion("gain_type_img >=", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgLessThan(String value) {
            addCriterion("gain_type_img <", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgLessThanOrEqualTo(String value) {
            addCriterion("gain_type_img <=", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgLike(String value) {
            addCriterion("gain_type_img like", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgNotLike(String value) {
            addCriterion("gain_type_img not like", value, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgIn(List<String> values) {
            addCriterion("gain_type_img in", values, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgNotIn(List<String> values) {
            addCriterion("gain_type_img not in", values, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgBetween(String value1, String value2) {
            addCriterion("gain_type_img between", value1, value2, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andGainTypeImgNotBetween(String value1, String value2) {
            addCriterion("gain_type_img not between", value1, value2, "gainTypeImg");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Integer value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Integer value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Integer value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Integer value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Integer value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Integer> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Integer> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Integer value1, Integer value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Integer value1, Integer value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNull() {
            addCriterion("last_updated_by is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNotNull() {
            addCriterion("last_updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByEqualTo(String value) {
            addCriterion("last_updated_by =", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotEqualTo(String value) {
            addCriterion("last_updated_by <>", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThan(String value) {
            addCriterion("last_updated_by >", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThanOrEqualTo(String value) {
            addCriterion("last_updated_by >=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThan(String value) {
            addCriterion("last_updated_by <", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThanOrEqualTo(String value) {
            addCriterion("last_updated_by <=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLike(String value) {
            addCriterion("last_updated_by like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotLike(String value) {
            addCriterion("last_updated_by not like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIn(List<String> values) {
            addCriterion("last_updated_by in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotIn(List<String> values) {
            addCriterion("last_updated_by not in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByBetween(String value1, String value2) {
            addCriterion("last_updated_by between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotBetween(String value1, String value2) {
            addCriterion("last_updated_by not between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNull() {
            addCriterion("last_updated_time is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNotNull() {
            addCriterion("last_updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeEqualTo(Date value) {
            addCriterion("last_updated_time =", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotEqualTo(Date value) {
            addCriterion("last_updated_time <>", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThan(Date value) {
            addCriterion("last_updated_time >", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_updated_time >=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThan(Date value) {
            addCriterion("last_updated_time <", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_updated_time <=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIn(List<Date> values) {
            addCriterion("last_updated_time in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotIn(List<Date> values) {
            addCriterion("last_updated_time not in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("last_updated_time between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_updated_time not between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}